package com.atguigu.patterns.factory.absfactory;

import com.atguigu.patterns.factory.result.BJCheesePizza;
import com.atguigu.patterns.factory.result.BJPepperPizza;
import com.atguigu.patterns.factory.result.Pizza;

// 这是工厂子类
public class BJFactory implements AbsFactory {

    @Override
    public Pizza createCheesePizza() {
        return new BJCheesePizza();
    }

    @Override
    public Pizza createPepperPizza() {
        return new BJPepperPizza();
    }

}
